package com.ruoyi.project.app.config;

import javax.servlet.http.HttpServletRequest;

import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.util.UrlPathHelper;

//实际接口地址为test  改写为do
@Component

public class UrlPathHelperExt extends UrlPathHelper{
 	@Override
	public String getLookupPathForRequest(HttpServletRequest request) {
		String url = request.getServletPath();
		if(url.equals("/user/testConn1")) {
			url = "/user/testConn";
			return url;
		}

		return url;
	}
}
